package business.report.impl;

import business.report.ConfiscatedWoodlandSrvice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import report.domain.ConfiscatedWoodland;
import report.domain.ConfiscatedWoodlandCriteria;
import report.mapper.ConfiscatedWoodlandMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "confiscatedWoodlandSrvice")
public class ConfiscatedWoodlandSrviceImpl implements ConfiscatedWoodlandSrvice {
    @Autowired
    ConfiscatedWoodlandMapper confiscatedWoodlandMapper;
    @Override
    public List<ConfiscatedWoodland> getConfiscatedWoodland() {
        ConfiscatedWoodlandCriteria criteria = new ConfiscatedWoodlandCriteria();
        criteria.createCriteria().getAllCriteria();
        return confiscatedWoodlandMapper.selectByExample(criteria);
    }
}
